package com.hua.designpattern.j2eepattern.compositeentity;

public class Client {
	private CompositeObject compositeObject = new CompositeObject();

	public void printValue() {
		for (int i = 0; i < compositeObject.getValue().length; i++) {
			System.out.println("Value: " + compositeObject.getValue()[i]);
		}
	}

	public void setValue(String data1, String data2) {
		compositeObject.setValue(data1, data2);
	}
}